﻿using System;

namespace BattleFury.Cartographer.Builder
{
	public class WorldBuilderSettings
	{
		public int Seed { get; set; }
		public float Frequency { get; set; }
		public float Amplitude { get; set; }
		public int Octaves { get; set; }
		public int Width { get; set; }
		public int Height { get; set; }
		public int BlockWidth { get; set; }
		public int BlockHeight { get; set; }
		public int ChunkWidth { get; set; }
		public int ChunkHeight { get; set; }

		public WorldBuilderSettings()
		{
			var rnd = new Random();
			Seed = rnd.Next();
			Frequency = 5f;
			Amplitude = 100f;
			Octaves = 4;
			Width = 128;
			Height = 128;
			BlockWidth = 6;
			BlockHeight = 6;
			ChunkWidth = Width * BlockWidth;
			ChunkHeight = Height * BlockHeight;
		}
	}
}